package fantasyfootball.data.entities;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * Class: 605.441 
 * Group: Richard Koretke, Kay Jantharasorn, Israel Rivera.
 * 
 * @author Israel Rivera
 * 
 */
@Entity(name="NFLKickingStats")
public class NFLKickingStats implements Serializable {	
	
	private static final long serialVersionUID = 2483100901830052586L;
	
	private Integer kickingStatsID;
	private Integer week;
	private NFLPlayer nflPlayer;
	private Integer fieldGoalMade;
	private Integer extraPointMade;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="KickingStatsID", nullable=false)
	public Integer getKickingStatsID() {
		return kickingStatsID;
	}

	public void setKickingStatsID(Integer kickingStatsID) {
		this.kickingStatsID = kickingStatsID;
	}

	@Column(name="Week", nullable=false)
	public Integer getWeek() {
		return week;
	}
	
	public void setWeek(Integer week) {
		this.week = week;
	}
	
	@JoinColumn(name="PlayerID", nullable=false)
	@ManyToOne(fetch=FetchType.LAZY, optional=false)
	public NFLPlayer getNflPlayer() {
		return nflPlayer;
	}
	
	public void setNflPlayer(NFLPlayer nflPlayer) {
		this.nflPlayer = nflPlayer;
	}
	
	@Column(name="FieldGoalMade", nullable=true)
	public Integer getFieldGoalMade() {
		return fieldGoalMade;
	}
	
	public void setFieldGoalMade(Integer fieldGoalMade) {
		this.fieldGoalMade = fieldGoalMade;
	}
	
	@Column(name="ExtraPointMade", nullable=true)
	public Integer getExtraPointMade() {
		return extraPointMade;
	}
	
	public void setExtraPointMade(Integer extraPointMade) {
		this.extraPointMade = extraPointMade;
	}
	
}